import javax.swing.*;
import java.awt.*;
class DrawCircle extends JFrame{
    private Mypanel mp=null;
    public static void main(String[] args) {
        new DrawCircle();
    }
    public DrawCircle(){
        mp=new Mypanel();
        this.add(mp);
        this.setSize(690,690);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
class Mypanel extends JPanel {
    @Override
    public void paint(Graphics g) {
        super.paint(g);
        //System.out.println("aaa");
        //g.drawOval(10,10,200,200);
        //g.drawRect(20,20,200,200);
        //g.setColor(Color.blue);
        //g.fillRect(20,20,200,20);
        //g.fillOval(10,10,100,100);
        Image image = Toolkit.getDefaultToolkit().getImage(JPanel.class.getResource(""));
        g.drawImage(image,10,10 ,650,650,this);
        //g.setColor(Color.black);
        //g.setFont(new Font("",Font.BOLD,40));
        //g.drawString("傻逼",100,100);
    }
}
